home *** CD-ROM | disk | FTP | other *** search
- //--------------------------------------------------------------
- //
- // FileOpen.wfm - Mugs Sample Application
- //
- // File Open dialog for opening data entry forms from the
- // File | Open menu selection and File Open toolbar button.
- //
- // Dependencies: <none>
- //
- // Visual dBASE Samples Group
- //
- // $Revision: 1.5 $
- //
- // Copyright (c) 1997, Borland International, Inc.
- // All rights reserved.
- //
- //---------------------------------------------------------------
- ** END HEADER -- do not remove this line
- //
- // Generated on 10/23/97
- //
- parameter bModal
- local f
- f = new fileopenForm()
- if (bModal)
- f.mdi = false // ensure not MDI
- f.readModal()
- else
- f.open()
- endif
-
- class fileopenForm of FORM
- with (this)
- autoCenter = true
- scaleFontSize = 8
- scaleFontBold = false
- height = 7.2273
- left = 30
- top = 8
- width = 33.8571
- text = "File Open"
- endwith
-
-
- this.BUTTONOPEN = new PUSHBUTTON(this)
- with (this.BUTTONOPEN)
- onClick = class::BUTTONOPEN_ONCLICK
- height = 1.2105
- left = 20
- top = 0.9474
- width = 12
- text = "&Open"
- metric = 0
- default = true
- fontName = "MS Sans Serif"
- fontSize = 8
- group = true
- colorNormal = "BtnText/BtnFace"
- value = false
- endwith
-
-
- this.BUTTONCANCEL = new PUSHBUTTON(this)
- with (this.BUTTONCANCEL)
- onClick = {; this.form.close() ; this.form.release()}
- height = 1.2105
- left = 20
- top = 2.8421
- width = 12
- text = "Cancel"
- metric = 0
- fontName = "MS Sans Serif"
- fontSize = 8
- group = true
- colorNormal = "BtnText/BtnFace"
- value = false
- endwith
-
-
- this.RADIOCUSTOMER = new RADIOBUTTON(this)
- with (this.RADIOCUSTOMER)
- transparent = false
- height = 1
- left = 3
- top = 1
- width = 15
- text = "&Customer"
- metric = 0
- colorNormal = "WindowText/BtnFace"
- fontName = "MS Sans Serif"
- fontSize = 8
- group = true
- value = true
- endwith
-
-
- this.RADIOINVOICE = new RADIOBUTTON(this)
- with (this.RADIOINVOICE)
- transparent = false
- height = 1
- left = 3
- top = 2.3684
- width = 15
- text = "&Invoice"
- metric = 0
- colorNormal = "WindowText/BtnFace"
- fontName = "MS Sans Serif"
- fontSize = 8
- group = false
- value = false
- endwith
-
-
- this.RADIOSUPPLIER = new RADIOBUTTON(this)
- with (this.RADIOSUPPLIER)
- transparent = false
- height = 1
- left = 3
- top = 3.7895
- width = 15
- text = "&Supplier"
- metric = 0
- colorNormal = "WindowText/BtnFace"
- fontName = "MS Sans Serif"
- fontSize = 8
- group = false
- value = false
- endwith
-
-
- this.RADIOINVENTORY = new RADIOBUTTON(this)
- with (this.RADIOINVENTORY)
- transparent = false
- height = 1
- left = 3
- top = 5.2105
- width = 15
- text = "In&ventory"
- metric = 0
- colorNormal = "WindowText/BtnFace"
- fontName = "MS Sans Serif"
- fontSize = 8
- group = false
- value = false
- endwith
-
-
- // {Linked Method} form.buttonopen.onClick
- function BUTTONOPEN_OnClick
- local app
-
- if TYPE("this.form.app") == "O"
- app = this.form.app
- do case
- case ( this.form.RADIOCUSTOMER.value )
- app.openCustomerForm()
- case ( this.form.RADIOINVOICE.value )
- app.openInvoiceForm()
- case ( this.form.RADIOSUPPLIER.value )
- app.openSupplierForm()
- case ( this.form.RADIOINVENTORY.value )
- app.openInventoryForm()
- endcase
- endif
- return ( this.form.close() )
- endclass
-